package cn.aixuegao.common.exception;


import cn.aixuegao.common.exception.enums.IceyExceptionEnum;

/**
 * 小天犬异常基类
 * 
 * @author hxy
 */
public class IceyException extends RuntimeException {

	private static final long serialVersionUID = 2427741416290614971L;

	private Integer code;
	private String message;

	public IceyException(IceyExceptionEnum ExceptionEnum) {
		this.code = ExceptionEnum.getCode();
		this.message = ExceptionEnum.getMessage();
	}

	public IceyException(String message) {
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
